import 'package:flutter/material.dart';
import 'package:flutter_screenutil/screenutil.dart';

class TopHeader extends StatelessWidget {
  const TopHeader({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Container(
      width: ScreenUtil().setWidth(750).toDouble(),
      padding: const EdgeInsets.all(20.0),
      color: Colors.pink,
      child: Column(
        children: [
          Container(
            margin: const EdgeInsets.only(top: 30.0),
            child: ClipOval(
              child: Image.network(
                  'https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fc-ssl.duitang.com%2Fuploads%2Fblog%2F202106%2F13%2F20210613235426_7a793.thumb.1000_0.jpeg&refer=http%3A%2F%2Fc-ssl.duitang.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=auto?sec=1672279918&t=6b206435a2498746e36b46edc55209bd',scale: 8.0,),
            ),
          ),
          Container(
            margin: const EdgeInsets.only(top: 10.0),
            child: Text(
              'moroks',
              style: TextStyle(
                  fontSize: ScreenUtil().setSp(36).toDouble(),
                  color: Colors.white),
            ),
          )
        ],
      ),
    );
  }
}
